package shap03;

import javax.naming.NamingEnumeration;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/8 9:38
 * @description:
 */
public class Company {
   private String name;
   private int num;
   /*封装方法*/

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public int getNum() {
    return num;
  }

  public void setNum(int num) {
    this.num = num;
  }
  /*构造方法*/
  Company(){}
  Company(String name,int num){
    this.name=name;
    this.num=num;
  }
  /*特殊方法*/
  void output(){
    System.out.println(name+"公司，员工数"+num);
  }
}
